package com.matt.foundation.vo.news;

import com.matt.domain.news.SystemNotification;
import com.matt.domain.news.SystemNotificationMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
@Data
public class NewsVo {

    private SystemNotification systemNotification;

    private List<SystemNotificationMenu> newsRecord = new ArrayList<SystemNotificationMenu>();

    public static NewsVo of (SystemNotification systemNotification,List<SystemNotificationMenu> newsRecord){
        NewsVo vo = new NewsVo();
        vo.setSystemNotification(systemNotification);
        vo.setNewsRecord(newsRecord);
        return vo;
    }


}
